<template>
  <div class="main">
    <div class="page">
      <!-- <div class="st"></div> -->
      <keep-alive>
        <router-view />
      </keep-alive>
    </div>

    <van-tabbar route>
      <van-tabbar-item replace to="/main" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/cate" icon="apps-o">分类</van-tabbar-item>
      <van-tabbar-item replace to="/cart" icon="cart-o">购物车</van-tabbar-item>
      <van-tabbar-item replace to="/mine" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {}
};
</script>
<style lang="less" scoped>
.page {
  position: fixed;
  height: calc(100% - 50px);
  left: 0;
  right: 0;
  background-color: #f5f5f5;
  // overflow-y: auto;
}
.st {
  height: 20px;
  background-color: gray;
  position: sticky;
  top: 20px;
}
</style>